package com.aaa.day1108.demo07;

/**
 * @author ${崔灿}
 * @date 2022/11/08 18:18
 **/

public class PowerAdapter implements DC5{
    private AC220 ac220;

    public  PowerAdapter(AC220 ac220){
        this.ac220 =  ac220;
    }

    //输出5V直流电
    @Override
    public int output5V() {
        int output = this.ac220.output220V();
        return (output/4);
    }
}
